package com.doraemon.module.buyer.dao;

import com.doraemon.module.buyer.entity.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by doraemon on 2017/9/12.
 */
public interface OrderDetailDao extends JpaRepository<OrderDetail,String>{
    /**
     * 查询订单对应的订单详情
     * @param orderId 订单编号
     * @return
     */
    List<OrderDetail> findByOrderId(String orderId);
}
